<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			* {
				margin: 0;
				padding: 0;
			}
			.box{
				height: 50px;
				text-align: center;
				background: red;
			}
			span{
				font-size: 20px;
				line-height: 50px;
				color: white;
				margin-right: 0px;
				
				transition: margin-right 5s;
			}
			div.box:hover span{
				margin-right: 35px;
			}
		</style>
	</head>
	<body>
		<div class="box">
			<span>杨</span>
			<span>老</span>
			<span>师</span>
			<span>带</span>
			<span>你</span>
			<span>学</span>
			<span>c</span>
			<span>s</span>
			<span>s</span>
		</div>
	</body>
</html>